package com.guli.gulimall.coupon.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangziheng
 * @version 1.0.0
 * @ClassName HelloController.java
 * @Description TODO
 * @createTime 2022年05月23日 18:57:00
 */
@RestController
@RequestMapping("hello")
@RefreshScope
public class HelloController {

    @Value("${person.name}")
    private String name;

    @Value("${person.age}")
    private Integer age;

    @RequestMapping("/getMsg")
    public String getMsg(){
        return name+age;
    }

}
